<?xml version="1.0" encoding="utf-8"?>
<RelativeLayout
	xmlns:android="http://schemas.android.com/apk/res/android"
	xmlns:app="http://schemas.android.com/apk/res-auto"
	android:id="@+id/nav_view"
	android:layout_marginTop="30dip"
	android:layout_width="match_parent"
	android:layout_height="match_parent"
	android:layout_gravity="start"
	android:background="@android:color/transparent"
	android:theme="@style/AppTheme.AppBarOverlay">

	<LinearLayout
		android:id="@+id/layout_bottom"
		android:layout_width="match_parent"
		android:layout_height="wrap_content"
		android:orientation="vertical"
		android:layout_alignParentBottom="true">

		<View
			android:layout_width="match_parent"
			android:layout_height="1px"
			android:layout_marginLeft="16dp"
			android:layout_marginRight="16dp"
			android:background="@android:color/darker_gray"/>

		<LinearLayout
			android:layout_width="match_parent"
			android:layout_height="52dp">

			<org.github.settingitem.SettingItem
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				app:titleIcon="@drawable/cog"
				app:title="设置"
				app:isShowUnderLine="false"
				app:rightStyle="iconHide"
				android:layout_weight="1.0"
				android:id="@+id/cog"/>

			<Space
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				android:layout_weight="1.0"/>

			<org.github.settingitem.SettingItem
				android:layout_width="match_parent"
				android:layout_height="wrap_content"
				app:titleIcon="@drawable/export"
				app:title="退出"
				app:isShowUnderLine="false"
				app:rightStyle="iconHide"
				android:layout_weight="1.0"
				android:id="@+id/export"/>

		</LinearLayout>

	</LinearLayout>

	<LinearLayout
		android:layout_width="match_parent"
		android:layout_height="match_parent"
		android:layout_above="@id/layout_bottom">

		<ScrollView
			android:layout_width="match_parent"
			android:layout_height="match_parent">

			<LinearLayout
				android:layout_width="match_parent"
				android:layout_height="match_parent"
				android:orientation="vertical">

				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/cellphone_android"
					app:isShowUnderLine="false"
					app:title="关于设备"
					app:rightStyle="iconHide"
					android:id="@+id/cellphone_android"/>

				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/tshirt_crew"
					app:isShowUnderLine="false"
					app:title="应用背景"
					app:rightText="默认"
					app:rightStyle="iconHide"
					android:id="@+id/tshirt_crew"/>

				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/speedometer"
					app:title="SpeedTest"
					app:rightText="网络延迟：168ms"
					app:rightStyle="iconHide"
					android:id="@+id/speedometer"/>
				
				<org.github.settingitem.SettingItem
					android:id="@+id/rocket"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:isShowUnderLine="false"
					app:titleIcon="@drawable/rocket"
					app:title="Shadowsocks"
					app:rightStyle="iconSwitch"/>
				
				<org.github.settingitem.SettingItem
					android:id="@+id/busy"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:isShowUnderLine="false"
					app:titleIcon="@drawable/ic_service_busy"
					app:title="ShadowsocksR"
					app:rightStyle="iconSwitch"/>
				
				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/apple_safari"
					app:isShowUnderLine="false"
					app:title="应用指南"
					app:rightText="使用帮助"
					app:rightStyle="iconHide"
					android:id="@+id/apple_safari"/>

				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/github"
					app:isShowUnderLine="false"
					app:title="Github"
					app:rightText="开源源码"
					app:rightStyle="iconHide"
					android:id="@+id/github"/>

				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/android_debug_bridge"
					app:title="应用反馈"
					app:rightText="QQ私聊"
					app:rightStyle="iconHide"
					android:id="@+id/android_debug_bridge"/>

				<org.github.settingitem.SettingItem
					android:id="@+id/dns"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:isShowUnderLine="false"
					app:titleIcon="@drawable/dns"
					app:title="应用放行"
					app:rightStyle="iconSwitch"/>

				<org.github.settingitem.SettingItem
					android:id="@+id/radio_tower"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:isShowUnderLine="false"
					app:titleIcon="@drawable/radio_tower"
					app:title="共享热点"
					app:rightStyle="iconSwitch"/>

				<org.github.settingitem.SettingItem
					android:id="@+id/package_variant"
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:isShowUnderLine="false"
					app:titleIcon="@drawable/package_variant"
					app:title="应用抓包"
					app:subTitle="使用普通配置请关闭抓包"
					app:rightStyle="iconSwitch"/>

				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/cloud_download"
					app:isShowUnderLine="false"
					app:title="动态配置"
					app:subTitle="应用自动更新动态配置"
					app:rightStyle="iconSwitch"
					android:id="@+id/cloud_download"/>
				
				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/minus_network"
					app:isShowUnderLine="false"
					app:title="锁定目标IP"
					app:subTitle="应用配置IP->锁定目标IP"
					app:rightStyle="iconSwitch"
					android:id="@+id/minus_network"/>
				
				<org.github.settingitem.SettingItem
					android:layout_width="match_parent"
					android:layout_height="wrap_content"
					app:titleIcon="@drawable/content_copy"
					app:isShowUnderLine="false"
					app:title="复制抓包"
					app:rightText="抓包未开启"
					app:rightStyle="iconHide"
					android:id="@+id/content_copy"/>
								
			</LinearLayout>

		</ScrollView>

	</LinearLayout>

</RelativeLayout>


